<?php
namespace app\index\model;
use think\Model;
class Urole extends Model
{
	//查询
	public function roleSelect($where)
	{
		return $this->where($where)->select();
	}
	//角色权限联合多对多查询
	public function roleTomanyquanxian()
	{
		return $this->belongsToMany('uquanxian','grm_urole_uquanxian');
	}
} 
